﻿<%@ Page Language="C#" MasterPageFile="~/e/eshop.Master" AutoEventWireup="true" CodeBehind="cart.aspx.cs"
    Inherits="BaoJian.eshop.cart.cart"  Title="昭光商城-购物车"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../css/new_cart.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellspacing="5" cellpadding="0" border="0" width="100%">
        <tbody>
            <tr>
                <td valign="top">
                    <table cellspacing="0" cellpadding="5" border="0" width="100%">
                        <tbody>
                            <tr>
                                <td>
                                    <div style="width: 100%;">
                                        <!--Begin  Display the title of Shopping Cart -->
                                        <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td width="22%">
                                                        <a href="/mn/shoppingCartApplication">
                                                            <img height="31" border="0" src="http://images.amazon.cn/s/shop-cart-header-blue.gif" /></a>
                                                    </td>
                                                    <td width="78%">
                                                       <%-- gaotian 欢迎您(如果您不是gaotian,请<a href="http://www.amazon.cn:80/mn/loginApplication?action=logout&amp;uid=168-6840411-2739412">请点击这里退出登录</a>)--%>
                                                    </td>
                                                    <td align="right" colspan="2">
                                                        <img border="0" src="http://images.amazon.cn/a/az-empty-shoppingcard.gif" onclick="javascript:clearcart()"
                                                            alt="清空购物车" />
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                        <!--End  Display the title of Shopping Cart -->
                                    </div>
                                </td>
                            </tr>
                            <!--Begin Shopping Cart is not empty -->
                            <tr>
                                <td>
                                    <table cellspacing="0" cellpadding="10" border="0" width="100%">
                                        <tbody>
                                            <input type="hidden" value="1" id="manaus" name="manaus" />
                                        </tbody>
                                    </table>
                                    <table cellspacing="0" cellpadding="10" border="0" width="100%">
                                        <input type="hidden" value="cid_116670180" name="hiddenCustomerId" id="hiddenCustomerId" />
                                        <tbody>
                                            <tr bgcolor="#d7ebff">
                                                <td width="60%" colspan="2">
                                                    <strong>我的购物车里的商品--马上购买</strong>
                                                </td>
                                                <td width="15%">
                                                    <div align="center">
                                                        <strong>市场价</strong></div>
                                                </td>
                                                <td width="15%">
                                                    <div align="center">
                                                        <strong>昭光商城价</strong></div>
                                                </td>
                                                <td width="10%">
                                                    <div align="center">
                                                        <strong>数量</strong></div>
                                                </td>
                                            </tr>
                                           </tbody>
                                          </table>
                                            <!-- Begin Display normal items for each -->
                                            <asp:DataList ID="DataList1" runat="server" Width="100%">
                                             <ItemTemplate>
                                               <tr valign="top">
                                                <td width="8%">
                                                    <table height="40" cellspacing="0" cellpadding="0" border="0" width="100%">
                                                        <tbody>                                                           
                                                            <tr>
                                                                <td valign="bottom">
                                                                    <div align="right">
                                                                        <a href="JavaScript:DeleteFromCart('hibh200383','0','159.0')">
                                                                            <img height="17" border="0" width="45" src="http://images.amazon.cn/d/delete.gif" /></a>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </td>
                                                <td>
                                                    <strong><span class="font14"><a href="/detail/product.asp?uid=168-6840411-2739412&amp;prodid=hibh200383&amp;ref=SC">
                                                        <%# DataBinder.Eval(Container.DataItem,"Name")%></a> </span></strong>
                                                    <br />
                                                </td>
                                                <td width="15%">
                                                    <p align="center">
                                                        <span class="price"><strong><font color="black"><s>￥ <%# DataBinder.Eval(Container.DataItem, "MarketPrice")%>元</s></font></strong></span></p>
                                                </td>
                                                <td width="15%">
                                                    <p align="center">
                                                        <span class="price"><strong>￥<%# DataBinder.Eval(Container.DataItem, "Price")%> <b class="price">元</b></strong></span>                                                        
                                                    </p>
                                                </td>
                                                <td align="center" width="10%">
                                                    <input type="text"  value="<%# DataBinder.Eval(Container.DataItem, "NUM")%>" maxlength="3" style="width: 30px;" name="product_shuliang1"
                                                        id="product_shuliang1" />
                                                    <input type="hidden"  value="<%# DataBinder.Eval(Container.DataItem, "PID")%>"  name="productID" id="productID" />  
                                                    <input type="hidden"  value="<%# DataBinder.Eval(Container.DataItem, "Price")%>" name="product_jiage" id="product_jiage" />                                                    

                                                  
                                                </td>
                                            </tr>
                                             </ItemTemplate>
                                            </asp:DataList>
                                          
                                            <!-- Begin Display gift items for each, every gift must be related with its normal item -->
                                            <!-- End Display gift items for each -->
                                             <table cellspacing="0" cellpadding="10" border="0" width="100%">
                                            <tr valign="top">
                                                <td colspan="5">
                                                    <img height="1" border="0" width="100%" src="http://images.amazon.cn/g/green-pixel.gif" />
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td width="60%" colspan="2">
                                                    <div align="right">
                                                        <span class="price"><strong><b><font color="black">共计:</font></b></strong></span></div>
                                                </td>
                                                <td width="15%">
                                                    <div align="center">
                                                        <span class="price"><strong><b class="price"><font color="black"><s>￥<%=TotalMarketPrice%>元</s></font></b></strong></span></div>
                                                </td>
                                                <td width="15%">
                                                    <div align="center">
                                                        <span class="price"><strong><b class="price">￥<%=TotalPrice%>元</b></strong></span></div>
                                                </td>
                                                <td align="left" width="10%" valign="top">
                                                    <input type="hidden" value="1" id="prodnum" name="prodnum" />
                                                    <input type="hidden" value="168-6840411-2739412" id="uid" name="uid" />
                                                    <input type="hidden" name="submit" id="submit" value="modifyQuantity" />
                                                    <asp:ImageButton ID="UpdateNum" runat="server" 
                                                        ImageUrl="http://images.amazon.cn/u/update-t-sm.gif" ToolTip="修改数量" 
                                                        onclick="UpdateNum_Click" />
                                                   
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td align="right" colspan="5">        
                                                    <a href="../mn/preferenceAddressMgrApp.aspx">
                                                        <img height="22" border="0" width="116" src="http://images.amazon.cn/a/az-by-split.gif" /></a>
                                                </td>
                                            </tr>
                                            <!-- End Display normal items for each -->
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <!--end Shopping Cart is not empty -->
                            <!-- begin Empty Shopping cart -->
                            <!-- end  Empty Shopping cart-->
                            <!-- begin empty cart and sfl is not null -->
                            <!-- end empty cart and sfl is not null -->
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
